import request from "@/utils/request";
// 获取管理员列表
export const getSkuListFn = (page) => {
  return request({
    url: `admin/skus/${page}`,
    method: "GET",
  });
};
// 新增商品
export const addSkuFn = (data) => {
  return request({
    url: `admin/Skus`,
    method: "POST",
    data,
  });
};
// 修改商品规格
export const editSkuFn = (id,data) => {
    return request({
      url: `admin/skus/${id}`,
      method: "POST",
      data,
    });
  };

//   删除用户
export const delSkuFn = (ids) => {
    return request({
      url: `admin/skus/delete_all`,
      method: "POST",
      data:{
        ids
      }
    });
  };

